package site.shenjie.user.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @RequestMapping("/user/hello")
    public String sayHello() {
        return "Hello 1111111111111";
    }

    @RequestMapping("/welcome")
    public String welcome(@RequestBody String name) {
        return "<h1>Service UserController welcome " + name + "</h1>";
    }
}
